import requests from '@src/common/request'

export function getStoreList() {
  return requests.post(
      {
        url: '/mall/anon/store/list',
        data: {
          storeListQuery: {

            latitude: 0,
            longitude: 0,
            name: "xxx"

          }
        }
      }
  )
}

//新增地址
export function addAddress(form) {
  return requests.post({
    url: '/mall/mobile/address/add',
    data: form
  })
}

//获取地址列表
export function getAddressList() {
  return requests.get('/mall/mobile/address/list')
}

//删除地址
export function deleteById(addressId) {
  return requests.delete('/mall/mobile/address/delete?addressId=' + addressId)
}

//更新地址
export function updateAddress(form) {
  return requests.post({
    url: '/mall/mobile/address/update',
    data:form
  })
}

//获取用户手机号
export function getUserPhone(temp) {
  return requests.post({
    url: '/wx/user/base/phone',
    data:temp
  })
}
